package com.taxshare.seller.timer;

import com.taxshare.seller.service.DocumentInfoService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author YANG
 * @date 2021/6/3
 */
@Component
public class InvoiceCancelHandler {

    @Autowired
    DocumentInfoService documentInfoService;

    @XxlJob("invoiceCancel")
    public ReturnT<String> invoiceCancel(String param) {
        documentInfoService.invoiceCancel();
        return ReturnT.SUCCESS;
    }
}
